package core.queue;

import core.router.Packet;

public class QueueNode {

	private Packet packet;
	private QueueNode next;
	
	public QueueNode(Packet p) {
		packet = p;
	}
	
	public void setNext(QueueNode n){
		next = n;
	}
	
	public QueueNode getNext(){
		return next;
	}
	
	public Packet getPacket(){
		return packet;
	}
	
	public double getPacketLength(){
		return packet.getSize();
	}
}
